.class public Lcom/instagram/j/q;
.super Ljava/lang/Object;
.source "MediaRenderCache.java"


# static fields
.field private static a:Lcom/instagram/j/q;


# instance fields
.field private final b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/CharSequence;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/CharSequence;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/CharSequence;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method private constructor <init>()V
    .locals 1

    .prologue
    .line 20
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/j/q;->b:Ljava/util/Map;

    .line 17
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/j/q;->c:Ljava/util/Map;

    .line 18
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/instagram/j/q;->d:Ljava/util/Map;

    .line 21
    return-void
.end method

.method public static a()Lcom/instagram/j/q;
    .locals 1

    .prologue
    .line 65
    sget-object v0, Lcom/instagram/j/q;->a:Lcom/instagram/j/q;

    if-nez v0, :cond_0

    .line 66
    invoke-static {}, Lcom/instagram/j/q;->b()V

    .line 68
    :cond_0
    sget-object v0, Lcom/instagram/j/q;->a:Lcom/instagram/j/q;

    return-object v0
.end method

.method private static declared-synchronized b()V
    .locals 2

    .prologue
    .line 72
    const-class v1, Lcom/instagram/j/q;

    monitor-enter v1

    :try_start_0
    sget-object v0, Lcom/instagram/j/q;->a:Lcom/instagram/j/q;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    .line 74
    :goto_0
    monitor-exit v1

    return-void

    .line 73
    :cond_0
    :try_start_1
    new-instance v0, Lcom/instagram/j/q;

    invoke-direct {v0}, Lcom/instagram/j/q;-><init>()V

    sput-object v0, Lcom/instagram/j/q;->a:Lcom/instagram/j/q;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 72
    :catchall_0
    move-exception v0

    monitor-exit v1

    throw v0
.end method


# virtual methods
.method public a(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 24
    iget-object v0, p0, Lcom/instagram/j/q;->b:Ljava/util/Map;

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 26
    if-nez v0, :cond_0

    .line 27
    invoke-static {p1, p2}, Lcom/instagram/j/r;->a(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;

    move-result-object v0

    .line 28
    iget-object v1, p0, Lcom/instagram/j/q;->b:Ljava/util/Map;

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 31
    :cond_0
    return-object v0
.end method

.method public a(Lcom/instagram/j/l;)V
    .locals 2
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/instagram/j/q;->b:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 36
    return-void
.end method

.method public b(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 50
    iget-object v0, p0, Lcom/instagram/j/q;->d:Ljava/util/Map;

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 52
    if-nez v0, :cond_0

    .line 53
    invoke-static {p1, p2}, Lcom/instagram/j/r;->b(Landroid/content/res/Resources;Lcom/instagram/j/l;)Ljava/lang/CharSequence;

    move-result-object v0

    .line 54
    iget-object v1, p0, Lcom/instagram/j/q;->d:Ljava/util/Map;

    invoke-virtual {p2}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 57
    :cond_0
    return-object v0
.end method

.method public b(Lcom/instagram/j/l;)Ljava/lang/CharSequence;
    .locals 3
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/instagram/j/q;->c:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 41
    if-nez v0, :cond_0

    .line 42
    invoke-static {p1}, Lcom/instagram/j/r;->a(Lcom/instagram/j/l;)Ljava/lang/CharSequence;

    move-result-object v0

    .line 43
    iget-object v1, p0, Lcom/instagram/j/q;->c:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 46
    :cond_0
    return-object v0
.end method

.method public c(Lcom/instagram/j/l;)V
    .locals 2
    .parameter

    .prologue
    .line 61
    iget-object v0, p0, Lcom/instagram/j/q;->d:Ljava/util/Map;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 62
    return-void
.end method
